# -*- coding: utf-8 -*-

from DAC.Func import Func
import json

class RequestParams(object):
    """查询入参"""

    usercode : str
    command : str
    orgcode : str
    params = {"biz":"","type":""}
    input = []

    def __init__(self, json_string_encoding):
        json_string = Func.decode_json_str(json_string_encoding)
        ps = json.loads(json_string)
        self.usercode = ps["usercode"]
        self.command = ps["command"]
        self.orgcode = ps["orgcode"]
        self.params["biz"] = ps["params"]["biz"]
        self.params["type"] = ps["params"]["type"]
        self.input = ps["str"]